home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970929-19971216 / 000340_news@newsmaster….columbia.edu _Sat Dec 6 00:17:54 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  6KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id AAA01100
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 6 Dec 1997 00:17:50 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id AAA01686
  7.     for kermit.misc@watsun; Sat, 6 Dec 1997 00:17:49 -0500 (EST)
  8. Path: news.columbia.edu!news.new-york.net!newsfeed.ecrc.net!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!204.96.197.5!newsfeeder.servtech.com!post.servtech.com!hal9000.buf.servtech.com!rchandra
  9. From: rchandra@hal9000.buf.servtech.com (Dr. R. Chandra)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: set host name service broke 5A(190) to 6.0.192
  12. Date: 5 Dec 1997 20:58:30 GMT
  13. Organization: private Linux system
  14. Lines: 119
  15. Message-ID: <669ptm$7c3$1@post.servtech.com>
  16. Reply-To: rchandra@letter.com
  17. NNTP-Posting-Host: hal9000.buf.servtech.com
  18. Summary: 5A(190) set host name service worked; doesn't work in 6.0.192
  19. Keywords: host telnet port service expect
  20. Xref: news.columbia.edu comp.protocols.kermit.misc:8135
  21.  
  22. I used to use "set host name service" in 5A(190), primarily in the
  23. following incantation:
  24.  
  25.     set host smtp.servtech.com smtp
  26.  
  27. After building 6.0.192 and running the same script, the "service" part
  28. would always get forced to telnet.  This, of course, broke things in a
  29. big way.  Here may be some relevant configuration data:
  30.  
  31. ttyp0 15:22 rchandra@hal9000:~ 0> kermit
  32.  
  33. C-Kermit 6.0.192, 6 Sep 96, for Linux
  34.  Copyright (C) 1985, 1996,
  35.   Trustees of Columbia University in the City of New York.
  36. Default file-transfer mode is BINARY
  37. Type ? or HELP for help.
  38. hal9000 Linux Kermit *show ver
  39.  
  40. Versions:
  41.  C-Kermit 6.0.192, 6 Sep 96
  42.  Numeric: 600192
  43.  UNIX Communications support, 6.0.169, 6 Sep 96 for Linux
  44.  UNIX File support, 6.0.115 6 Sep 96 for Linux
  45.  C-Kermit Protocol Module 6.0.095, 6 Sep 96
  46.  C-Kermit functions, 6.0.133, 6 Sep 96
  47.  Command package 6.0.088, 6 Sep 96
  48.  User Interface 6.0.177, 6 Sep 96
  49.  CONNECT Command for UNIX, 6.0.083, 6 Sep 96
  50.  Network support, 6.0.078, 6 Sep 1996
  51.  
  52. hal9000 Linux Kermit *show fea
  53.  
  54. Major optional features included:
  55.  Network support (type SHOW NET for further info)
  56.  Hardware flow control
  57.  External XYZMODEM protocol support
  58.  REDIRECT command
  59.  RESEND command
  60.  Fullscreen file transfer display
  61.  Control-character unprefixing
  62.  
  63. Major optional features not included:
  64.  No DIAL command
  65.  No SCRIPT command
  66.  No character-set translation
  67.  
  68. Compiled Dec  1 1997 19:00:40, options:
  69.  DEBUG TLOG BIGBUFOK XFRCAN CK_SPEED CK_APC CK_AUTODL CK_MKDIR NODIAL WHATAMI
  70.  DYNAMIC CMDDEP=64 CKMAXPATH=1023 MAXGETPATH=128 CMDBL=4072 VNAML=64
  71.  ARRAYREFLEN=128 FORDEPTH=10 MAXTAKE=32 MACLEVEL=64 MAC_MAX=256 MSENDMAX=100
  72.  MAXDDIR=32 MAXDNUMS=4095 UNIX DIRENT RENAME CK_TMPDIR CK_TTYFD NETCONN
  73.  TCPSOCKET NOLISTEN SOL_SOCKET TDP_NODELAY RLOGCODE CONGSPD SELECT NOFILEH
  74.  NOKVERBS _POSIX_SOURCE __linux__ POSIX i386 __STDC__ __GNUC__ CK_ANSIC
  75.  CK_ANSILIBS _POSIX_JOB_CONTROL CK_POSIX_SIG CK_CURSES CK_WREFRESH CK_PCT_BAR
  76.  CK_RTSCTS POSIX_CRTSCTS CK_SYSINI CK_INI_A CK_TTGWSIZ CK_NAWS DCMDBUF
  77.  CK_RECALL CK_TIMERS
  78.  
  79. hal9000 Linux Kermit *show net
  80.  
  81. Supported networks:
  82.  TCP/IP
  83.  
  84. SET TELNET parameters:
  85.  echo: local
  86.  NVT newline-mode: on (cr-lf)
  87.  BINARY newline-mode: raw (cr)
  88.  binary-mode: accepted, host=NVT, c-kermit=NVT
  89.  bug binary-me-means-u-too: off
  90.  bug binary-u-means-me-too: off
  91.  terminal-type: none (dumb will be used)
  92.  
  93. Active network connection:
  94.  Host: none via: tcp/ip
  95.  Keepalive is on
  96.  Linger is off
  97.  Nodelay is off
  98.  Send buffer is default size
  99.  Receive buffer is default size
  100.  
  101. hal9000 Linux Kermit *q
  102. ttyp0 15:30 rchandra@hal9000:~ 0> exit
  103.  
  104.  
  105. I hacked around this to get it to work, basically by creating my own
  106. global variable called tcpsvc, and anywhere it looks like the 6.0.192
  107. code works with a service name or number string, it copies the
  108. discovered string to this global buffer.  Also, anywhere it looks like
  109. it's trying to set the service (netopen() for example), it checks to
  110. see if the first character in this global buffer is not a null, and
  111. sets pointers, does a strcpy(), etc. as necessary to prevent
  112. defaulting to "telnet".  And finally, in netclos(), where other things
  113. (e.g., the ipaddr) are nulled out, tcpsvc[0] gets set to a null.
  114.  
  115. This seems like a really messy way to do this, but for lack of time to
  116. study every line in every source file and analyzing program flow, it
  117. seems to work OK.
  118.  
  119. BTW, I doubt this is related, but just in the interest of full
  120. disclosure: I made some other mods to the code to enable me to use
  121. Kermit as the dialer for PPP (pppd).  This involved a few changes,
  122. mainly to ckutio.c.  I set up a global flag which is initialized to
  123. false, and only gets set to true by encountering EXIT or QUIT.  In the
  124. ttclos() routine, if this flag is not set, it returns without setting
  125. the speed to B0 (which would hang up...not particularly useful when
  126. PPP negotiations are in progress).  Thus, the line only gets hung up
  127. by "other forces" (such as the HUPCL bit :^).  Additionally, the
  128. programs (scripts) that run when the IP layer goes up and the modem is
  129. to be hung up (ip-up script/program and "disconnect <program/script>"
  130. argument) manage the lockfiles, which enables cooperation between
  131. Kermit and pppd.  Lastly, if Kermit discovers that the number in the
  132. lockfile is not its own PID, it prints a warning and does not attempt
  133. to remove (unlink(2)) the lockfile(s).
  134.  
  135. In summary, with a service argument (both name:svc and name svc), set
  136. host seems to have broken somewhere between 5A(190) and 6.0.192.
  137. -- 
  138. Oooooo-oooo-oooo-ooooo, Oooooo-oooo-oooo-ooooo, Ooooo-weem-oh-wum-ooo-ayyy
  139. In the jungle, the silicon jungle, the process sleeps tonight.
  140. Joe Philipps <rchandra@letter.com> http://www.servtech.com/public/rchandra/